package com.alan.dubbo.consume.controller;

import com.alan.dubbo.consume.service.TestService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by Alan on 2017/12/12.
 */
@RestController
public class TestController {

    @Autowired
    private TestService testService;

    @RequestMapping("test")
    public String hello(String str){
        return testService.hello(str);
    }
}
